<link rel="stylesheet" href="<?php echo base_url();?>skin/css/user.css"/>
<?php if(!empty($user)){?>
<div class="module-collright login-right">
    <div class="login-top"></div>
    <div class="login-center">
        <h3><?php echo $rear?"Hello: ":"Xin chào: "; echo '<a href="',base_url(),'user/profile.html">'.$user->name.'</a>';?></h3>
        <div class="img-user">
            <img src="<?php if(!empty($user->image)){echo $user->image;}else{echo base_url(),'skin/images/avta.jpg';}?>"  width="100" height="100" />
        </div>
        <div class="info-user">
            <a href="<?php echo base_url();?>user/payment.html"><?php echo $rear?"Account":"Tài khoản";?></a><br />
            <span class="tien"><?php echo $user->money;?></span><img class="img-egg" src="<?php echo base_url();?>skin/images/egg.png" /><br />
            <a href="<?php echo base_url();?>user/lesson.html">0 lesson(s)</a><br />
            <a href="<?php echo base_url();?>user/charge.html"><?php echo $rear?"Top-up":"Nạp tiền";?></a><br />
            <a href="<?php echo base_url();?>user/logout"><?php echo $rear?"LogOut":"Đăng xuất";?></a>
        </div>
        <div class="panel-user">
            <?php if(!empty($panel)){
                echo $panel;
            }?>
        </div>
    </div>
    <div class="login-bottom"></div>
</div>
<?php }?>